//
//  QueryLotteryOpenOperation.m
//  PlayBall
//
//  Created by 龙华 伍 on 12-7-2.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "JddQueryLotteryOpenOperation.h"

@implementation JddQueryLotteryOpenOperation



- (void)main{
    JddNetDataCommunication *netDataCommunication = [[JddNetDataCommunication alloc] init];
    
    NSString *bodyString = [JddParameterBuilder queryLotteryOpen];
    //modify by rainy
//    NSData *dataLotteryIssue = [netDataCommunication requestDataByPostBodyData:[bodyString dataUsingEncoding:NSUTF8StringEncoding]];
    NSData *dataLotteryIssue  = [netDataCommunication requestDataByPostUrl:BASE_SERVER_HOST_ORGJDD bodyData:[bodyString dataUsingEncoding:NSUTF8StringEncoding]];
    [((NSObject*)self.delegate) performSelectorOnMainThread:@selector(QueryLotteryOpenOperationResult:) withObject:dataLotteryIssue waitUntilDone:NO];            
}

@end